<?php
/**
 * Intreface DAO
 *
 * @author: http://phpdao.com
 * @date: 2013-05-22 23:18
 */
interface RentalsDAO{

	/**
	 * Get Domain object by primry key
	 *
	 * @param String $id primary key
	 * @Return Rentals 
	 */
	public function load($id);

	/**
	 * Get all records from table
	 */
	public function queryAll();
	
	/**
	 * Get all records from table ordered by field
	 * @Param $orderColumn column name
	 */
	public function queryAllOrderBy($orderColumn);
	
	/**
 	 * Delete record from table
 	 * @param rental primary key
 	 */
	public function delete($PKRentals);
	
	/**
 	 * Insert record to table
 	 *
 	 * @param Rentals rental
 	 */
	public function insert($rental);
	
	/**
 	 * Update record in table
 	 *
 	 * @param Rentals rental
 	 */
	public function update($rental);	

	/**
	 * Delete all rows
	 */
	public function clean();

	public function queryByFKPartnerEmployee($value);

	public function queryByFKPartner($value);

	public function queryByRentalsDate($value);

	public function queryByReturnDate($value);

	public function queryByDescunt($value);

	public function queryByTotalAmount($value);

	public function queryByActive($value);

	public function queryByVisible($value);


	public function deleteByFKPartnerEmployee($value);

	public function deleteByFKPartner($value);

	public function deleteByRentalsDate($value);

	public function deleteByReturnDate($value);

	public function deleteByDescunt($value);

	public function deleteByTotalAmount($value);

	public function deleteByActive($value);

	public function deleteByVisible($value);


}
?>